import httpInstance from '@/utils/https.js'

// 用户信息
export const commentAddApi = (data) => {
    return httpInstance({
        url: '/comment/add',
        method: 'POST',
        data
    })
}

// 用户信息
export const commentListApi = (workId) => {
    return httpInstance({
        url: `/comment/list/${workId}`,
        method: 'GET'
    })
}

// 用户信息
export const commentLikeApi = (commentId,workId) => {
    return httpInstance({
        url: `/comment/like/${commentId}/${workId}`,
        method: 'GET'
    })
}

// 用户信息
export const commentdisLikeApi = (commentId,workId) => {
    return httpInstance({
        url: `/comment/dislike/${commentId}/${workId}`,
        method: 'GET'
    })
}